<template>
  <div class="h100">
    <div class="home-bac">
      <img src="~@/assets/reception/background1.png" alt="" >
    </div>
    <div class="home-main">
      <div class="settledEnt">
        <span class="settledEnt-title">
          <span>入驻企业</span>
          <span class="settledEnt-more" @click="routerpush()">更多>></span>
        </span>
        <span class="settledEnt-english-title">Settled Enterprise</span>
        <div class="settledEnt-main">
          <div class="settledEnt-main-item" v-for="(item,index) in settledEntList" :key="index">
            <img :src="upload + item.Logo" alt="">
          </div>
          <!-- <img src="~@/assets/reception/settledEnt/background.png" alt=""> -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getAPPgetQYZCListApi } from '@/api/resService'

export default {
  name: 'settledEnt',
  data () {
    return {
      flipped:false,
      settledEntList:[],
      settledEntItemID:'',
      upload:process.env.VUE_APP_API_BASE_URL,
    }
  },
  methods: {
    routerpush(){
      this.$router.push({ path: '/reception/settledEnt/detail' });
    },
    getAPPgetQYZCList(){
      getAPPgetQYZCListApi(
        {
          pageSize:10,
          pageIndex:1,
          RMTJ:1,
        }
      ).then((res) => {
        console.log('res',res);
        this.settledEntList = res.data
      })
      .catch((err) => {
      })
      .finally(() => {
      })
    },
  },
  mounted() {
    this.getAPPgetQYZCList()
  },
}
</script>

<style lang="less" scoped>
/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 10px; /* 垂直滚动条宽度 */
}
 
::-webkit-scrollbar-track {
  background: #f1f1f1; /* 滚动条轨道颜色 */
}
 
::-webkit-scrollbar-thumb {
  background: #cac7c7; /* 滚动条滑块颜色 */
  border-radius:10px ;
  height: 20px;
}
 
::-webkit-scrollbar-thumb:hover {
  background: #818181; /* 滚动条滑块hover颜色 */
}

.home-bac{
  img{
    height: 230px;
    width: 100%;
  }
}
.home-main{
  margin-top:30px ;
  .settledEnt{
    margin:auto;
    // height: 380px;
    width: 1600px;
    .settledEnt-main{
      height: 100%;
      display: flex;
      flex-wrap:wrap ;
      .settledEnt-main-item{
        // width: 30%;
        margin: 10px 20px;
        cursor: pointer;
        img{
          // width: 100%;
          height: 80px;
        }
      }
    }

    .settledEnt-title{
      color: #1e50ae;
      font-size:24px ;
      margin: auto 0;
      width: 100%;
      border-bottom: 2px solid #1e50ae;
      display: flex;
      margin-top: 140px;
      justify-content: space-between;
      .settledEnt-more{
        font-size: 16px;
        color: #000;
        cursor: pointer;
      }
    }
    .settledEnt-english-title{
      color: #e1e2e3;
      display: block;
      margin: 10px 0;
    }
  }
}
</style>